function marquee(speed,direction,num)
{ 
	var id1 = (num-1)*2+1;
	var id2 = num*2;
	var id3 = num-1;
	var ScrollBox = document.getElementById("ScrollBox"+id3);
	var holder1 = document.getElementById("holder"+id1); 
	var holder2 = document.getElementById("holder"+id2);
	holder2.innerHTML = holder1.innerHTML; 
	function scroll_right(){ 
		if(ScrollBox.scrollLeft <= 0)
		{ 
			ScrollBox.scrollLeft = holder1.offsetWidth; 
		} 
		ScrollBox.scrollLeft--; 
	} 
	function scroll_left(){ 
		if(ScrollBox.scrollLeft >= holder1.offsetWidth)
		{ 
			ScrollBox.scrollLeft = 0; 
		} 
		ScrollBox.scrollLeft++; 
	} 
	var scrolling = direction == "right" ? scroll_right : scroll_left; 
	var scrollT = setInterval(scrolling, speed); 
	ScrollBox.onmouseover = function()
	{
		clearInterval(scrollT);
	} 
	ScrollBox.onmouseout = function()
	{
		scrollT = setInterval(scrolling, speed);
	}
} 